package com.bestcem.xm.om.dao.impl;


import com.bestcem.xm.om.dao.UserPackoperatelogDao;
import com.bestcem.xm.om.dao.mapper.UserPackoperatelogMapper;
import com.bestcem.xm.om.entity.UserPackoperatelog;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * (UserPackoperatelog)表数据库访问层
 *
 * @author makejava
 * @since 2022-04-11 16:48:38
 */
@Repository
public class UserPackoperatelogDaoImpl implements UserPackoperatelogDao {
    @Resource
    private UserPackoperatelogMapper operatelogMapper;

    @Override
    public UserPackoperatelog queryById(String id) {
        return operatelogMapper.queryById(id);
    }

    @Override
    public List<UserPackoperatelog> queryAllByLimit(UserPackoperatelog userPackoperatelog, Pageable pageable) {
        return operatelogMapper.queryAllByLimit(userPackoperatelog, pageable);
    }

    @Override
    public long count(UserPackoperatelog userPackoperatelog) {
        return operatelogMapper.count(userPackoperatelog);
    }

    @Override
    public int insert(UserPackoperatelog userPackoperatelog) {
        return operatelogMapper.insert(userPackoperatelog);
    }

    @Override
    public int insertBatch(List<UserPackoperatelog> entities) {
        return operatelogMapper.insertBatch(entities);
    }

    @Override
    public int insertOrUpdateBatch(List<UserPackoperatelog> entities) {
        return operatelogMapper.insertOrUpdateBatch(entities);
    }

    @Override
    public int update(UserPackoperatelog userPackoperatelog) {
        return operatelogMapper.update(userPackoperatelog);
    }

    @Override
    public int deleteById(String id) {
        return operatelogMapper.deleteById(id);
    }

    @Override
    public List<UserPackoperatelog> pageOperateLog(String packId, Integer offset, Integer size) {
        return operatelogMapper.pageOperateLog(packId, offset, size);
    }

    @Override
    public Integer countByPackId(String packId) {
        return operatelogMapper.countByPackId(packId);
    }
}

